package com.xingkeduo.model.vo;

import com.xingkeduo.model.po.TStaffClockIn;
import java.text.SimpleDateFormat;
public class CmsStaffClockInVo {

    private Long id;
    private String realWorkStartTime;
    private String realWorkStopTime;

    public CmsStaffClockInVo (TStaffClockIn tStaffClockIn) {

        SimpleDateFormat simdfDate = new SimpleDateFormat("yyyy-MM-dd");
        SimpleDateFormat simdfTime = new SimpleDateFormat("HH:mm");
        this.id = tStaffClockIn.getId();
        this.realWorkStartTime = tStaffClockIn.getRealWorkStartTime() == null &&tStaffClockIn.getDate() != null ? null:simdfDate.format(tStaffClockIn.getDate())+" "+simdfTime.format(tStaffClockIn.getRealWorkStartTime());
        this.realWorkStopTime = tStaffClockIn.getRealWorkStopTime() == null &&tStaffClockIn.getDate() != null ? null:simdfDate.format(tStaffClockIn.getDate())+" "+simdfTime.format(tStaffClockIn.getRealWorkStopTime());

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRealWorkStartTime() {
        return realWorkStartTime;
    }

    public void setRealWorkStartTime(String realWorkStartTime) {
        this.realWorkStartTime = realWorkStartTime;
    }

    public String getRealWorkStopTime() {
        return realWorkStopTime;
    }

    public void setRealWorkStopTime(String realWorkStopTime) {
        this.realWorkStopTime = realWorkStopTime;
    }
}
